/**这里写一些说明*/
package com.pjedu.nbmallshop.service;


import com.pjedu.nbmallcommon.utils.PageResult;
import com.pjedu.nbmallshop.entity.MallGoodsCategory;
import com.pjedu.nbmallshop.vo.MallIndexCategoryVO;
import com.pjedu.nbmallshop.vo.SearchPageCategoryVO;

import java.util.HashMap;
import java.util.List;

public interface MallGoodsCategoryService{
    /**
     * 后台分页
     *
     * @param pageUtil
     * @return
     */
    PageResult getCategorisPage(HashMap pageUtil);

    String saveCategory(MallGoodsCategory goodsCategory);

    String updateGoodsCategory(MallGoodsCategory goodsCategory);

    MallGoodsCategory getGoodsCategoryById(Long id);

    Boolean deleteBatch(Integer[] ids);

    /**
     * 返回分类数据(首页调用)
     *
     * @return
     */
    List<MallIndexCategoryVO> getCategoriesForIndex();

    /**
     * 返回分类数据(搜索页调用)
     *
     * @param categoryId
     * @return
     */
    SearchPageCategoryVO getCategoriesForSearch(Long categoryId);

    /**
     * 根据parentId和level获取分类列表
     *
     * @param parentIds
     * @param categoryLevel
     * @return
     */
    List<MallGoodsCategory> selectByLevelAndParentIdsAndNumber(List<Long> parentIds, int categoryLevel);
}
